#include <iostream>
#include <gtest/gtest.h>

//断言宏
//ASSERT_  断言失败退出
//EXPECT_  断言失败继续运行
//断言宏-- 必须在单元测试宏函数中使用

TEST(test1, less_test)
{
    int age = 20;
    EXPECT_LT(age, 10);
    printf("ok\n");
}

TEST(test2, great_test1)
{
    int age = 5;
    EXPECT_LT(age, 10);
    printf("ok\n");
}

int main(int argc, char* argv[])
{   
    testing::InitGoogleTest(&argc, argv);
    RUN_ALL_TESTS();
    return 0;
}